import request from '@/util/request'

// 门诊消费记录接口
export function payHistory(params) {
    return request({
        method: 'GET',
        url: 'https://mock.apifox.cn/m1/1527701-0-default/api/pay',
        data: { params }
    })
}
// 门诊充值记录接口
export function rechargeHistory(params) {
    return request({
        method: 'GET',
        url: 'https://mock.apifox.cn/m1/1527701-0-default/api/detail',
        data: { params }
    })
}
// 住院消费记录接口
export function consumeHospital(params) {
    return request({
        method: 'GET',
        url: 'https://mock.apifox.cn/m1/1527701-0-default/api/consumHospital',
        data: { params }
    })
}
// 住院充值记录接口
export function hospitaLization(params) {
    return request({
        method: 'GET',
        url: 'https://mock.apifox.cn/m1/1527701-0-default/api/Hospitalization',
        data: { params }
    })
}
//退款记录
export function refund(params) {
    return request({
        method: 'GET',
        url: 'https://mock.apifox.cn/m1/1527701-0-default/api/refund',
        data: { params }
    })
}
//门诊消费记录详情
export function payDetail(params) {
    return request({
        method: 'GET',
        url: 'https://mock.apifox.cn/m1/1527701-0-default/api/cost/detail',
        data: { params }
    })
}
//门诊消费记录费用详细
export function feiyonmx(params) {
    // console.log(params);
    return request({
        method: 'GET',
        url: 'https://mock.apifox.cn/m2/1527701-0-default/37669675',
        data: { params }
    })
}
// 住院消费记录详情
export function inhospital(params) {
    // console.log(params);
    return request({
        method: 'GET',
        url: 'https://mock.apifox.cn/m1/1527701-0-default/api/inhospital',
        data: { params }
    })
}
//近七挂号预约情况
export function echartsYu(params) {
    return request({
        method: 'GET',
        url: 'http://127.0.0.1:4523/m1/1527701-0-default/api/echarts',
        data: { params }
    })
}